package com.woniuxy04;

import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author 作者
 * @create 2025-06-05 16:23
 */
public class Test02 {
    public static void main(String[] args) {
        int[] a = {1,2,3};
        try{
            String str=null;
            str.equals("aaa");
            System.out.println(a[0]);
            System.out.println(a[1]);
            System.out.println(a[2]);
            System.out.println(a[3]);
            System.out.println("aaaaaaa");
        }catch(Exception e){
            System.out.println("catch发生异常，处理异常");
        }finally {
            System.out.println("finally,有没有异常都会执行");
        }
        System.out.println("程序继续执行");
        System.out.println("程序结束");
    }


}
